import request from '@/utils/request'

// 查询景点业务列表
export function listSpotUsageDetail(query) {
  return request({
    url: '/manage/spotUsageDetail/list',
    method: 'get',
    params: query
  })
}

// 查询景点业务详细
export function getSpotUsageDetail(id) {
  return request({
    url: '/manage/spotUsageDetail/' + id,
    method: 'get'
  })
}

// 新增景点业务
export function addSpotUsageDetail(data) {
  return request({
    url: '/manage/spotUsageDetail',
    method: 'post',
    data: data
  })
}

// 修改景点业务
export function updateSpotUsageDetail(data) {
  return request({
    url: '/manage/spotUsageDetail',
    method: 'put',
    data: data
  })
}

// 删除景点业务
export function delSpotUsageDetail(id) {
  return request({
    url: '/manage/spotUsageDetail/' + id,
    method: 'delete'
  })
}
